//会话域 存 取 删
export function setSessionStorage(keyStr, value) {
    sessionStorage.setItem(keyStr, JSON.stringify(value));
}

export function getSessionStorage(keyStr) {
    var str = sessionStorage.getItem(keyStr);
    if (str == '' || str == null || str == 'null' || str == undefined) {
        return null;
    } else {
        return JSON.parse(str);//str==>obj
    }
}

export function removeSessionStorage(keyStr){
    sessionStorage.removeItem(keyStr);
}


